<template>
  <div class="todo-item" :style="{ background: item.bgColor, borderColor: item.borderColor }">
    <div>
      <h4>{{ item.title }}</h4>
      <p>{{ item.task }}</p>
      <p>{{ item.date }}</p>
    </div>
    <el-button :style="{ background: item.btnBgColor }">處理</el-button>
  </div>
</template>

<script>
export default {
  name: 'TodoItem',
  props: ['item']
}
</script>

<style scoped lang="less">
.todo-item {
  background: rgba(211, 94, 71, 0.1);
  //min-width: 301px;
  height: 104px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding: 15px 18px;
  border-left: 4px solid;
  h4,
  p {
    margin: 0;
  }
  h4 {
    font-size: 18px;
    line-height: 25px;
    margin-bottom: 6px;
  }
  p {
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 4px;
  }
  p:last-child {
    font-size: 12px;
    line-height: 17px;
  }
  .el-button {
    height: 26px;
    border-radius: 6px;
    padding: 5px 20px;
    font-size: 12px;
    color: #fff;
  }
}
</style>
